/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.z100h.supplychain.sku.entity;


import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 供应链产品管理Entity
 * @author madara
 * @version 2018-09-20
 */
public class Sku extends DataEntity<Sku> {
	
	private static final long serialVersionUID = 1L;
	private String productCode;		// 产品code
	private String productName;		// 产品名称
	private String categoryA;		// 一级类目
	private String categoryB;		// 二级类目
	private String categoryC;		// 三级类目
	private String pUnit;		// 单位
	private String supplierId;		// 供应商id//TODO
	private String supplierName;
	private String commonAttribute="0"; //公共属性 0公有 1私有
	private Integer realtimeAmount;


	public Integer getRealtimeAmount() {
		return realtimeAmount;
	}

	public void setRealtimeAmount(Integer realtimeAmount) {
		this.realtimeAmount = realtimeAmount;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public Sku() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public String getpUnit() {
		return pUnit;
	}

	public void setpUnit(String pUnit) {
		this.pUnit = pUnit;
	}

	public String getCommonAttribute() {
		return commonAttribute;
	}

	public void setCommonAttribute(String commonAttribute) {
		this.commonAttribute = commonAttribute;
	}

	public Sku(String id){
		super(id);
	}

	@Override
	@ExcelField(title="公司id", align=2, sort=7)
	public String getCompanyId() {
		return companyId;
	}

	@Override
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	
	@Override
	@ExcelField(title="部门id", align=2, sort=8)
	public String getDepartmentId() {
		return departmentId;
	}

	@Override
	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}
	
	@Override
	@ExcelField(title="岗位id", align=2, sort=9)
	public String getStationId() {
		return stationId;
	}

	@Override
	public void setStationId(String stationId) {
		this.stationId = stationId;
	}
	
	@ExcelField(title="产品名称", align=2, sort=10)
	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	
	@ExcelField(title="产品code", align=2, sort=11)
	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	
	@ExcelField(title="一级类目", dictType="sc_category_a", align=2, sort=12)
	public String getCategoryA() {
		return categoryA;
	}

	public void setCategoryA(String categoryA) {
		this.categoryA = categoryA;
	}
	
	@ExcelField(title="二级类目", dictType="sc_category_b", align=2, sort=13)
	public String getCategoryB() {
		return categoryB;
	}

	public void setCategoryB(String categoryB) {
		this.categoryB = categoryB;
	}
	
	@ExcelField(title="三级类目", dictType="sc_category_c", align=2, sort=14)
	public String getCategoryC() {
		return categoryC;
	}

	public void setCategoryC(String categoryC) {
		this.categoryC = categoryC;
	}
	
	@ExcelField(title="单位", align=2, sort=15)
	public String getPUnit() {
		return pUnit;
	}

	public void setPUnit(String pUnit) {
		this.pUnit = pUnit;
	}
	
	@ExcelField(title="供应商id", align=2, sort=16)
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	
}